const Tree = require('multiple-tree');

let tree = new Tree();

let a = {
    a:1,
}

tree.insert(a);
console.log("tree select ",tree.select(a));

console.log(tree.insert({
    a:3
}));

tree.insert({
    a:4
});
tree.insert({
    a:5
});
tree.grow({
    a:6
});
tree.grow({
    a:7
});
tree.grow({
    a:8
});
tree.grow({
    a:9
});
console.log(tree.grow({
    a:10
}));
console.log("tree walk ",JSON.stringify(tree.walk()));
